package com.jqbd.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.jqbd.common.MyJSON;
import com.jqbd.mapper.CompanyMapper;
import com.jqbd.mapper.EducationMapper;
import com.jqbd.pojo.Company;
import com.jqbd.pojo.Education;
import com.jqbd.pojo.User;
import com.jqbd.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<Company> findAll() {
        return companyMapper.findAll();
    }

    @Override
    public void add(Company company) {
        companyMapper.add(company);
    }

    @Override
    public void update(Company company) {
        companyMapper.update(company);
    }

    @Override
    public void deleteById(Integer companyId) {
        companyMapper.deleteById(companyId);
    }

    @Override
    public void deleteByIds(Integer[] companyIds) {
        companyMapper.deleteByIds(companyIds);
    }
}
